//
//  TempCity.m
//  07-homeWork-MRC
//
//  Created by 402030900@qq.com on 16/7/12.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "TempCity.h"

@implementation TempCity
-(void)dealloc {
    [_name release];
    [_number release];
    [super dealloc];
}
-(void)setName:(NSString *)name {
    if (_name != name) {
        [_name release];
        [_name retain];
    }
}
-(void)setNumber:(NSString *)number {
    if (_number != number) {
        [_number release];
        [_number retain];
    }
}
-(instancetype)initWithName:(NSString *)name Number:(NSString *)number{
    if (self) {
        self = [super init];
        _name = name;
        _number = number;
    }
    return self;
}
-(NSString *)description{
  return [NSString stringWithFormat:@"%@ : %@",_name,_number];
}
@end
